package im.zhaojun.system.service;


import im.zhaojun.system.mapper.PUpdateMapper;
import im.zhaojun.system.model.PUpdate;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public interface PUpdateService {


    List<PUpdate> SelectAllsPUpdate(@RequestParam("variable") String variable, @RequestParam("groups") String groups,
                                    @RequestParam("levels") String levels);

//    Integer selectCounts();

    PUpdate selectById(Integer id);

    void updateById(@Param("id") Integer id, @Param("variable") String variable, @Param("groups") String groups
            , @Param("levels") String levels, @Param("recovery") String recovery, @Param("plimit") String plimit, @Param("describes") String describes);


    void deleteById(Integer id);

    void insertPUpdate(PUpdate pUpdate);
}
